package cn.icanci.loopstack.ddk.common.socket.load;

import java.io.Serializable;
import java.util.Objects;

/**
 * 字典键值对象
 * 
 * @author icanci
 * @since 1.0 Created in 2023/01/09 22:28
 */
public class DictValueObjectDTO implements Serializable {

    /** 配置Key */
    private String key;
    /** 配置Value */
    private String value;

    public DictValueObjectDTO() {
    }
    public DictValueObjectDTO(String key, String value) {
        this.key = key;
        this.value = value;
    }


    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        DictValueObjectDTO that = (DictValueObjectDTO) o;
        return Objects.equals(key, that.key) && Objects.equals(value, that.value);
    }

    @Override
    public int hashCode() {
        return Objects.hash(key, value);
    }
}
